<template>
    <div>
      <el-card class="box-card">
        <div id="editor">
          <p>欢迎使用 wangEditor 富文本编辑器</p>
        </div>
      </el-card>
    </div>
</template>
<script>

var E = require('wangeditor')
export default {
  name: 'ContentEdit',
  data () {
    return {
      content: '我是富文本编辑器的内容',
      // tinymce的配置信息 参考官方文档 https://www.tinymce.com/docs/configure/integration-and-setup/
      editorSetting: {
        height: 400
      }
    }
  },
  mounted () {
    // 创建编辑器
    var editor = new E('#editor')
    editor.create()
  }
}
</script>
